//
//  PLRefreshGifFooter.m
//  PointLegend
//
//  Created by 黄卫 on 17/2/24.
//  Copyright © 2017年 huangwei. All rights reserved.
//

#import "GJRefreshGifFooter.h"

@implementation GJRefreshGifFooter

- (void)setHidden:(BOOL)hidden
{
    [super setHidden:hidden];
    BOOL lastHidden = hidden;
    if (lastHidden) {
        return;
    }
    if (!self.superview) {
        return;
    }
    if (hidden) {
        self.scrollView.contentInset = UIEdgeInsetsZero;
    }
    else if (!hidden)
    {
        self.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 44, 0);
    }
}

@end
